Ext.define('TS.model.rp.RpCheckModel',{
	extend: 'Ext.data.Model',
	fields: [
		{name: 'id',type: 'int'},
		{name: 'checkId',type: 'int'},
		{name: 'checkDate',type: 'date'},
		{name: 'checkerId',type: 'int'},
		{name: 'custSuppId',type: 'int'},
		{name: 'contactId',type: 'int'},
		{name: 'checkType',type: 'int'},
		{name: 'direct',type: 'int'},
		{name: 'debitAmt',type: 'float'},
		{name: 'creditAmt',type: 'float'},
		{name: 'fyear',type: 'int'},
		{name: 'period',type: 'int'},
		{name: 'remark',type: 'string'},
		{name: 'checkAmount',type: 'float'},
		{name: 'debitAmt',type: 'float'},
		{name: 'creditAmt',type: 'float'},
		{name: 'checkTypeName',type:'string'},
		{name: 'arpBillCode',type:'string'},
		{name: 'rpBillCode',type:'string'},
		{name: 'transferBillCode',type:'string'},
		{name: 'transferCust',type:'string'},
		{name: 'arpBillCode',type:'string'},
		{name: 'rpBillCode',type:'string'}
	],
	associations:[
	        	  {type: 'hasOne',model: 'TS.model.base.CustomerModel',associatedName:'customer',associationKey:'customer'},
	        	  {type: 'hasOne',model: 'TS.model.rp.ContactModel',associatedName: 'contact',associationKey:'contact'},
	        	  {type: 'hasOne',model: 'TS.model.base.EmpModel',associatedName: 'checker',associationKey:'checker'}
	        	]
});
	